package task5;

import com.sun.jndi.cosnaming.CNCtx;
import sun.text.CompactByteArray;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/8 9:37
 * @description:
 */
public class Company {
  private String name;
  private int num;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getNum() {
    return num;
  }

  public void setNum(int num) {
    this.num = num;
  }


  /*构造方法*/
  Company(){}    /*空*/
  Company(String name){
    this.name=name;
  }
  Company(String name,int num){
    this(name);
    this.num=num;
  }

  /*特殊方法*/
  void output(){
    System.out.println(name+"公司,员工数："+num);
  }
}
